
import { createApp } from 'vue'
import App from './App.vue'
import './permission.js'
import { setupRouter } from '@/router'
import { setupStore } from '@/store'
import ProLayout, { PageContainer } from '@ant-design-vue/pro-layout'
// import { setupChat } from './utils/chat'

const app = createApp(App);

import * as antIcons from '@ant-design/icons-vue'
Object.keys(antIcons).forEach(key => {
  app.component(key, antIcons[key])
})
app.config.globalProperties.$antIcons = antIcons
import './style.css'
setupRouter(app)
setupStore(app)
// setupChat(app)
app.use(ProLayout).use(PageContainer).mount('#app')
